package com.ideal.frame.nodecertificate.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ideal.frame.entity.AutoModel;
import com.ideal.frame.node.entity.NodeTb;
import lombok.Data;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.Date;

@Data
@Entity
@Table(name = "node_certificate")
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
@Where(clause = "del_flag=0")
public class NodeCertificate extends AutoModel {
  private String type;
  private Long nodeId;
  @Transient
  private Object node;
  @JsonFormat(pattern = "yyyy-MM-dd", locale = "GMT+8")
  private Date createTime;
  private String name;
  private boolean delFlag;
  private String cerPath;
  private int nodeType;
}
